package com.ruoyi.team.domain.excel;

import java.math.BigDecimal;

import org.apache.poi.ss.usermodel.Cell;
import org.apache.poi.ss.usermodel.Workbook;

import com.ruoyi.common.utils.poi.ExcelHandlerAdapter;

/**
 * 折扣格式化输出
 */
public class DiscountHandler implements ExcelHandlerAdapter{

	@Override
	public Object format(Object value, String[] args, Cell cell, Workbook wb) {
		
		BigDecimal onhandrad = new BigDecimal(100.0);
		
		if (0 == onhandrad.compareTo((BigDecimal) value)) {
			return "无";
		}
		
		return value;
	}

}
